home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetZeroPoint.cpp < prev    next >
C/C++ Source or Header  |  1996-08-15  |  745b  |  29 lines

  1. /*
  2.  *--- PGetZeroPoint.cpp ---------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetZeroPoint.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetZeroPoint.h"
  12. #include "PQuery.h"
  13. #include "PReplyBuf.h"
  14.  
  15. const size_t REPLY_SIZE = 8;        // two longs
  16.  
  17. PGetZeroPoint::PGetZeroPoint()
  18. {
  19.     char temp[REPLY_SIZE];
  20.     
  21.     PQuery query(pm_getzeropoint, temp, REPLY_SIZE);
  22.  
  23.     PReplyBuf reply(temp);
  24.     
  25.     reply >> xPosition >> yPosition;
  26. }
  27.  
  28. // end of PGetZeroPoint.cpp
  29.